<template>
  <el-container class="admin-container">
    <el-header>
      <div class="head">
        <span>人才管理系统</span>
      </div>
      <el-button type="info" @click="logout">退出</el-button>
    </el-header>
    <el-container>
      <el-aside width="240px">
        <el-menu
          background-color="#3C3C3C"
          text-color="#fff"
          active-text-color="#409EFF"
          unique-opened=""
          :collapse="isCollapse"
          :collapse-transition="false"
          router
          :default-active="$route.path"
        >
          <el-menu-item index="check">
            <i class="el-icon-remove-outline"></i>离职审核
          </el-menu-item>
          <el-menu-item index="appeal">
            <i class="el-icon-warning-outline"></i>申诉审核
          </el-menu-item>
          <el-submenu index="normal">
            <template slot="title"
              ><i class="el-icon-s-claim"></i>一般审核</template
            >

            <el-menu-item index="attendance">
              <!-- 二级菜单模板 -->
              <template slot="title">
                <i class="el-icon-data-line"></i>
                <span>考勤</span>
              </template>
            </el-menu-item>
            <el-menu-item index="reputation">
              <template slot="title">
                <i class="el-icon-s-flag"></i>
                <span>荣誉</span>
              </template>
            </el-menu-item>
            <el-menu-item index="discipline">
              <template slot="title">
                <i class="el-icon-s-check"></i>
                <span>违纪</span>
              </template>
            </el-menu-item>
          </el-submenu>
        </el-menu>
      </el-aside>
      <el-main>
        <router-view> </router-view>
      </el-main>
    </el-container>
  </el-container>
</template>


<script>
export default {
  methods: {
    logout() {
      this.$router.push("/oplogin");
    },
  },
};
</script>

<style scoped>
.admin-container {
  height: 100%;
}
.el-header {
  background-color: #272727;
  display: flex;
  justify-content: space-between;
  padding-left: 0;
  align-items: center;
  color: white;
  font-size: 15px;
  height: 50px;
}

.head {
  width: 100px;
  margin-left: 10px;
}
.el-aside .el-menu {
  border-right: none;
}
.el-aside {
  background-color: #3c3c3c;
  text-align: center;
  line-height: 200px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 20px !important;
}


</style>